<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
			
			int logined = 0;
			if (session.getAttribute("userObject")!= null) {
				logined=1;
			}
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<s:head />
		<s:i18n name="globalMessages"></s:i18n>
		<base href="<%=basePath%>" />
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
		<title>登录</title>
		<script type='text/javascript' src='js/jquery-1.4.2.min.js'></script>
		<script type='text/javascript' src='js/jquery.validate.min.js'></script>
		<script type='text/javascript' src='js/common.js'></script>
		<link href="style/index.css" rel="stylesheet" type="text/css" />
		<link href="style/valid.css" rel="stylesheet" type="text/css" />
			<style type="text/css">
				a:link {
					text-decoration: none;
				}
				a:visited {
					text-decoration: none;
				}
				a:hover {
					text-decoration: none;
				}
				a:active {
					text-decoration: none;
				}
				.STYLE10 {
					font-size: 14px;
					font-weight: bold;
				}
		</style>
		<script type=text/javascript>
		if (window.parent.frame_content !=null) {
			window.parent.location.href = "loginAction!toLoginPage.action";
		}
		var logined = "<%=logined%>";
		function changeContent2(t, v) {
			var f = document.getElementById("frame_content");
			var params = "";
			if (t==0) {
				params= "typeId=" + v;
			} else {
				params= "groupId=" + v;
			}

			if (f == null) {
				if (logined == "0") {
					window.location.href = "indexAction!notLoginIndex.action?" + params;
				} else {
					window.location.href = "loginAction!login.action?" + params;
				}
				
			} else {
				if (t == 0) {
					document.getElementById("frame_content").contentWindow.location.href= "indexAction!findByTypeAndGroup.action?typeId=" + v;
				} else {
						document.getElementById("frame_content").contentWindow.location.href= "indexAction!findByTypeAndGroup.action?groupId=" + v;
				}
			}
			
		}
		
			function change() {
				document.getElementById("vcodeimg").src = "VerifyCodeImg?date=" + (new Date());
				return false;
			}
			function submitForm() {
				if ($.trim($("#account").val()) == "") {
					$("#accountError").text("请输入账户");
					return false;
				}
				if ($("#password").val() == "") {
					$("#passwordError").text("请输入密码");
					return false;
				}
				if ($.trim($("#verifyCode").val()) == "") {
					$("#verifyCodeError").text("请输入验证码");
					return false;
				}
			 	$("#loginForm").submit();
			}

			function searchMsg() {
				var f = document.getElementById("frame_content");
				var sform = document.getElementById("sefrm");
				if (f == null) {
					var url = "";
					if (logined == "0") {
						sform.action = "indexAction!notLoginIndex.action";
					} else {
						sform.action = "loginAction!login.action";
					}
					sform.target = "";
					sform.submit();
				} else {
					sform.submit();
				}
			}
		</script>
	</head>
<body style="margin:0px; text-align:center;" >
<!--顶部-->
<script type="text/javascript">
function serchMsg(pageNo)
{
if(pageNo!=0)
{
 document.getElementById("sefrm").action = "msg!findMsg.action?pageNo=" +pageNo;
}
  document.getElementById("sefrm").submit();
}
</script>
<link href="manage/manage.css" rel="stylesheet" type="text/css">
<div id="top">
  <div id="topz1" style="text-align: left;">
  <div class="topl1" style="margin-left: 200px;"></div>
  <div class="topr1" style="position:relative;text-align: center;padding-left: 400px;"  >
  <ul style="z-index:1;position: absolute;width: 600px;">
			<li><a href="loginAction!toLoginPage.action " class="STYLE5">登录 |&nbsp;</a></li>
			<li><a href="userRegister!doForwordRegPage.action" class="STYLE5">免费注册 |&nbsp;</a> </li>
  			 <li><a href="indexAction!notLoginIndex.action" class="STYLE5">首页</a></li> 
  		 <li>| 在线服务 | <a href="comment!lisComment.action?typeId=4" class="STYLE5">帮助中心</a> |</li> 
  		 <li class="menu2" style="text-align: left;"  onMouseOver="this.className='menu1'" onMouseOut="this.className='menu2'"><a class="STYLE5">网站导航</a>
  		 <div class="list">
			<div class="item_div" style=""><a href="javascript:changeContent2(0, 1);">险种推荐</a></div>
			<div class="item_div"><a href="javascript:changeContent2(0, 2);" >邀请函</a></div>
			<div class="item_div"><a href="javascript:changeContent2(0, 3);"  >经典案例</a></div>
			<div class="item_div2"><a href="javascript:changeContent2(0, 5);" >保险教育</a></div>
			<div class="item_div2">
				<a href="javascript:changeContent2(1, 25);"  style="color: gray;">保险新闻</a>&nbsp;&nbsp;
				<a href="javascript:changeContent2(1, 26);"  style="color: gray;">保险意义</a> &nbsp;&nbsp;
			</div>
			<div class="item_div">
				<a href="javascript:changeContent2(1, 27);"  style="color: gray;">理财规划</a>&nbsp;&nbsp;
				<a href="javascript:changeContent2(1, 28);"   style="color: gray;">保险理论</a> &nbsp;&nbsp;
			</div>
			<div class="item_div"><a href="javascript:changeContent2(0,6);" >公告通知</a></div>
			<div class="item_div"><a href="javascript:changeContent2(0, 8);" >客户关怀</a></div>
			<div class="item_div2"><a href="about.jsp" target="">关于易彩通</a></div>
			<div class="item_div2">
				<a href="cpyc.jsp"   style="color: gray;">诚聘英才</a>&nbsp;&nbsp;
				<a href="lianxi.jsp"   style="color: gray;">联系我们</a> &nbsp;&nbsp;
			</div>
			<div class="item_div">
				<a href="comment!lisComment.action?typeId=1"  style="color: gray;">用户评价</a>&nbsp;&nbsp;
				<a href="comment!lisComment.action?typeId=2"  style="color: gray;">媒体报道</a> &nbsp;&nbsp;
			</div>
			<div class="item_div2"><a href="wzdt.jsp" >更多内容</a></div>
		</div>
		</li>
	 </ul>
  	</div>
  </div>
</div>



<div id="top2">
<s:form name="sefrm" action="mobanListAction!findMsg.action" id="sefrm" method="post" target="frame_content">
  <table width="960" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td width="436" height="35">&nbsp;</td>
      <td width="148" class="top_lm">咨询热线：<strong class="top_lm">400-000-000</strong></td>
      <td width="138"> 
      <s:select list="listType" listKey="id" listValue="name"  headerKey="0" headerValue="----全部----" id="msgTypeId" name="typeId">
         </s:select></td>
      <td width="180"><input name="likeName" type="text" size="25" id="likeName" value="${likeName}"/></td>
      <td width="58"><a href="javaScript:searchMsg();"><img src="images/search.jpg" width="49" height="20" border="0" /></a></td>
    </tr>
  </table>
  </s:form>
</div>
<div align="right">
<table width="100%" height="41" border="0" cellpadding="0" cellspacing="0" >
  <tr>
  	<td>&nbsp;</td>
    <td width="500px"  class="tip"  height="44" align="right">&nbsp;
    	<s:if test="hasErrors()">
						<s:fielderror cssStyle="padding:0;margin:0;"/>
						<s:actionerror cssStyle="padding:0;margin:0;"/>
		</s:if>
    
    </td>
  </tr>
</table>
</div>
<s:form name="loginForm" id="loginForm" action="loginAction!loginMain.action" method="post">
<table width="960" height="161" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="598" height="352" align="center"><img src="images/login_tp.jpg" width="470" height="352" /></td>
    <td width="362" align="left" valign="top"><table width="327" height="301" border="0" cellpadding="0" cellspacing="0"  style="border:1px solid #CACACA;" >
      <tr>
        <td width="45" height="52" class="STYLE3">&nbsp;</td>
        <td height="52" colspan="2" class="STYLE3">易彩通用户登录</td>
      </tr>
      <tr>
        <td height="44">&nbsp;</td>
        <td width="54" align="center">账&nbsp;&nbsp;户 </td>
        <td width="226">
        	<s:textfield maxlength="11"  id="account"  onfocus="javascript:$('#accountError').text('');" name="account" size="27" cssStyle="border:1px solid #DBDBDB; height:22px; width:188px;"></s:textfield>
        </td>
      </tr>
      <tr>
      	<td></td>
      	<td></td>
      	<td><span class="tip" id="accountError"></span></td>
      </tr>
      <tr>
        <td height="43">&nbsp;</td>
        <td align="center">密&nbsp;&nbsp;码 </td>
        <td>
        	<s:password  maxlength="16"  onfocus="javascript:$('#passwordError').text('');" name="password" id="password" size="27" cssStyle="border:1px solid #DBDBDB; height:22px; width:188px;"></s:password>
        </td>
      </tr>
       <tr>
      	<td></td>
      	<td></td>
      	<td><span class="tip" id="passwordError"></span></td>
      </tr>
      <tr>
        <td height="44">&nbsp;</td>
        <td align="center">验证码 </td>
        <td><table width="199" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="53">
              	<s:textfield maxlength="4" id="verifyCode"  onfocus="javascript:$('#verifyCodeError').text('');" name="verifyCode" size="6" cssStyle="border:1px solid #DBDBDB; height:22px;"></s:textfield>
              </td>
              <td width="55">&nbsp;<img id="vcodeimg" src="VerifyCodeImg" width="47" height="26" /></td>
              <td width="92" nowrap="nowrap">看不清？<a href="javascript:return false;" onclick="change();">换一张</a></td>
            </tr>
          </table>
      </td>
      </tr>
       <tr>
      	<td></td>
      	<td></td>
      	<td><span class="tip" id="verifyCodeError" ></span></td>
      </tr>
      <tr>
        <td height="56">&nbsp;</td>
        <td colspan="2" align="center"><table width="222" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="125" height="34"><img  onclick="submitForm();" src="images/denglu.jpg"  width="92" height="24" /></td>
              <td width="97" align="center"><a href="userRegister!toRetrievedPwdPage.action">找回密码</a></td>
            </tr>
          </table></td>
      </tr>
      <tr>
        <td height="60" colspan="3" align="center"><img src="images/mfzc.jpg" onclick="location.href='userRegister!doForwordRegPage.action'" style="cursor: hand;" width="230" height="34" /></td>
        </tr>
    </table>
      <table width="327" height="43" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td height="43" align="center" valign="bottom" bgcolor="#EFEDEE"><img src="images/line.jpg" width="325" height="36" /></td>
        </tr>
      </table></td>
  </tr>
</table>
</s:form>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="63">&nbsp;</td>
  </tr>
</table>

<!-- 中间的用户评价神马的 -->
<table width="100%" height="106" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="background-image:url(images/di_bg.jpg); background-repeat:repeat-x;">
  <tr>
    <td height="189" align="center" style="border-bottom:1px solid #AAAAAA; border-top:1px solid #AAAAAA;"><table width="960" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="283" height="142" valign="top"><table width="284"  border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td width="37" height="44" align="center"><img src="images/d1_1.jpg" width="32" height="26" /></td>
              <td colspan="2" ><table width="255" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="177" height="32" align="left" class="STYLE10">为什么选择易彩通？</td>
                    <td width="70" align="right" class="STYLE1">
                    	<s:if test="whyComments.size()>4">
                    		<a href="comment!lisComment.action?typeId=0" class="di_ys">更多&gt;&gt;</a>
                    	</s:if>
                    </td>
                  </tr>
              </table>
              </td>
            </tr>
            
            <s:iterator value="whyComments" id="why" status="whyst">
            <s:if test="!(#whyst.index>3)">
	            <tr>
	              <td height="23" align="center"><s:property value="#whyst.index + 1"/>、</td>
	              <td align="left"><div style="width:189px; white-space:nowrap;overflow:hidden;text-overflow:ellipsis;">
	              <a href="comment!detailWhyChooes.action?typeId=0&&detailId=${why.id}" class="STYLE5">
	              		<s:property value="#why.title" />
	              </a></div>
	              </td>
	            </tr>
	        </s:if>
            </s:iterator>
            
        </table></td>
        <td width="42" align="center"><img src="images/di_dian.jpg" width="3"  /></td>
        <td width="291" valign="top"><table width="290"   border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td width="32" height="44"><img src="images/d2_1.jpg" /></td>
              <td colspan="2" ><table width="255" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="177" height="32" align="left" class="STYLE10">用户评价</td>
                    <td width="70" align="right" class="STYLE1">
                    	<s:if test="userComments.size()>4">
                    		<a href="comment!lisComment.action?typeId=1" class="di_ys">更多&gt;&gt;</a>
                    	</s:if>
                    </td>
                  </tr>
              </table></td>
            </tr>
            
            
            <s:iterator value="userComments" id="userComment" status="ucst">
            <s:if test="!(#ucst.index>3)">
	            <tr>
	              <td height="23" align="center"><img src="images/dian2.jpg" width="10" height="10" /></td>
              	  <td nowrap="nowrap" width="69" align="left" class="di_rq"><s:date name="#userComment.commentTime"  format="yyyy-MM-dd"/> </td>
              	  <td nowrap="nowrap" align="left"><div style="width:189px; white-space:nowrap;overflow:hidden;text-overflow:ellipsis;">
	              <a href="comment!detailUserComent.action?typeId=1&&detailId=${userComment.id}" class="STYLE5">
	              		<s:property value="#userComment.title" />
	              </a>
	              </div>
	              </td>
	            </tr>
	        </s:if>
            </s:iterator>
        </table></td>
              <td width="43" align="center"><img src="images/di_dian.jpg" alt="" width="3"   /></td>
       		 <td width="301" valign="top"><table width="290"  border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td width="32" height="44"><img src="images/d3_1.jpg" /></td>
              <td colspan="2" ><table width="255" border="0" cellspacing="0" cellpadding="0">
                  <tr>
	                    <td width="177" height="32" align="left" class="STYLE10">媒体报道</td>
	                    <td width="70" align="right" class="STYLE1">
	                    	<s:if test="baodaoComments.size()>4">
	                    		<a href="comment!lisComment.action?typeId=2" class="di_ys">更多&gt;&gt;</a>
	                    	</s:if>
	                    </td>
	                  </tr>
	              </table></td>
	            </tr>
            
            <s:iterator value="baodaoComments" id="baodao" status="baodaost">
            <s:if test="!(#baodaost.index>3)">
	            <tr>
	              <td height="23" align="center"><img src="images/dian2.jpg" width="10" height="10" /></td>
              	  <td nowrap="nowrap" width="69" align="left" class="di_rq"><s:date name="#baodao.commentTime"  format="yyyy-MM-dd"/> </td>
	              <td align="left">
	              <div style="width:189px; white-space:nowrap;overflow:hidden;text-overflow:ellipsis;">
	              <a href="comment!detailMeiti.action?typeId=2&&detailId=${baodao.id}" class="STYLE5">
	              		<s:property value="#baodao.title" />
	              </a>
	              </div>
	              </td>
	            </tr>
	        </s:if>
            </s:iterator>
        </table></td>
      </tr>

</table>
</td>
</tr>
    </table>
    </td>
    </tr>
    </table>

 <!-- 底部，所属公司所有权之类的 -->
<jsp:include page="foot_end.jsp"></jsp:include>
</body>
</html>
